local key = KEYS[1]
local local_key = ARGV[1]

if redis.call("exists", local_key) == 0 then
    redis.call("set", local_key, 1)
    return 1
else
    return 0
end